package com.ssm.helong.shop.entity;

/**
 * 商品实体类
 */
public class Goods {
    //商品类别编号
    private Integer id;
    //商品类别名字
    private String goodsName;
    //所属小类
    private Integer goodsFatherId;
    //所属大类
    private Integer goodsParentId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsFatherId() {
        return goodsFatherId;
    }

    public void setGoodsFatherId(Integer goodsFatherId) {
        this.goodsFatherId = goodsFatherId;
    }

    public Integer getGoodsParentId() {
        return goodsParentId;
    }

    public void setGoodsParentId(Integer goodsParentId) {
        this.goodsParentId = goodsParentId;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", goodsFatherId=" + goodsFatherId +
                ", goodsParentId=" + goodsParentId +
                '}';
    }
    //定义无参构造
    public Goods() {
    }
    //定义有参构造
    public Goods(Integer id, String goodsName, Integer goodsFatherId, Integer goodsParentId) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsFatherId = goodsFatherId;
        this.goodsParentId = goodsParentId;
    }
}
